APPNAME = pablo
OBJECTS = sdl.o 

INCLUDES = -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include


LIBS = -lpthread -lSDLmain -lSDL -lSDL_image -lSDL_mixer

# DEBUG = -g

$(APPNAME) : $(OBJECTS)
	g++ -o $(APPNAME) $(OBJECTS) $(LIBS)

sdl.o : sdl.cpp
	g++ -c $(DEBUG) $(INCLUDES) sdl.cpp

clean :
	rm -f $(OBJECTS)
	rm -f $(APPNAME)
	rm -f *~
